﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Command;
using GalaSoft.MvvmLight.Messaging;
using System.Windows.Input;
using Quizzer.Model;
using Quizzer.DataAccess;

namespace Quizzer.ViewModel
{
    [Magic]
    public class ProfileViewModel : ViewModelBase
    {
        public ProfileViewModel()
        {
            Messenger.Default.Register<Account>(this, ReceiveMessage);
        }

        private void ReceiveMessage(Account account)
        {
            _account = account;
            Username = _account.Username;
        }

        private Account _account;

        public string Username { get; set; }
    }
}
